package com.schoolCommunity.mapper;

import com.schoolCommunity.entity.ForIndexMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author YTH
 * @since 2020-10-08
 */
public interface ForIndexMessageMapper extends BaseMapper<ForIndexMessage> {

    //点赞介绍的留言
    @Update("update `for_index_message` set loves=loves+1 where id = #{id}")
    public Integer AddLovesForIndexMessage(long id);

}
